<%@ page language="java" pageEncoding="UTF-8"%>
<html>
<head>
<%@ include file="/WEB-INF/common/init.jsp"%>
<link href="<%=path%>/res/css/patternLock.min.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<%=path%>/res/js/patternLock.min.js"></script>
<title>登录红花记事</title>
</head>
<body>
	
	<input id="wxId" name="wxId" type="hidden" value="<%=request.getParameter("wxId")%>">
	<br/>
	<div style="text-align:center">
		请滑动图案进行解锁<br>
		(三行数字分别是123 456 789)<br>
		(比如密码为1236，滑动后图案类似<strong>﹁</strong>)
		<div id="p1" style='margin:auto;'></div>
		(若要找回密码，请在公众号回复“找回密码”)
	</div>
		
<script type="text/javascript">
	window.lock = new PatternLock("#p1",{allowRepeat : true});
	lock.onTouchEnd = function() {
		$.post("<%=path%>/u?m=login", { pwd:lock.getPattern() }	   
		  ,function(data){
				if(data.success){
					window.location.href="<%=path%>/u?m=overview";
				}else{
					alert(data.msg)
				}
		   }, "json");
	}
	</script>
</body>
</html>